﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:dd="clr-namespace:GongSolutions.Wpf.DragDrop;assembly=GongSolutions.Wpf.DragDrop"
                    xmlns:Diagramming="clr-namespace:CI.ViewModels.Diagramming">
    <DataTemplate x:Key="CharacterDragDropAdorner">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="64"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <Image Stretch="UniformToFill" Source="{Binding Path=ID, Converter={StaticResource CharacterPortraitConverter}}" Height="64" Width="64"/>
            <TextBlock HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" FontSize="32" FontWeight="DemiBold" Text="{Binding Path=Name, Mode=OneTime}"/>
        </Grid>
    </DataTemplate>
    <DataTemplate x:Key="CorporationDragDropAdorner">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="64"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <TextBlock HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" FontSize="32" FontWeight="DemiBold" Text="{Binding Path=Name, Mode=OneTime}"/>
        </Grid>
    </DataTemplate>
    <DataTemplate x:Key="ActivityDragDropAdorner">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="64"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <TextBlock HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" FontSize="32" FontWeight="DemiBold" Text="{Binding Path=Activity, Mode=OneTime, Converter={StaticResource ActivityNameConverter}}"/>
        </Grid>
    </DataTemplate>    
    <DataTemplate x:Key="ItemDragDropAdorner">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="64"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            
            <TextBlock HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" FontSize="32" FontWeight="DemiBold" Text="{Binding Path=TypeName, Mode=OneTime}"/>
        </Grid>
    </DataTemplate>
</ResourceDictionary>